 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
   <style type="text/css">
  </style>
  <jsp:include page="../Common/header.jsp"></jsp:include>
 <!-- Content Wrapper. Contains page content -->
   <div class="content-wrapper">
       <section class="content-header">
		    <h1>新建待办事项</h1>
		    <ol class="breadcrumb">
			<li><a href="#"><i class="fa fa-home"></i> Home</a></li>
			<li class="active">个人</li>
			<li class="active">待办</li>
		    </ol>
	   </section>

	<section class="content">																		
    <form method="post" id="form_data" name="form_data" enctype="multipart/form-data" class="well form-horizontal">
		<input type="hidden" id="ajax" name="ajax" value="0">
		<input type="hidden" id="status" name="status" value="1">
		<input type="hidden" id="opmode" name="opmode" value="add">
		<div class="form-group">
			<label class="col-sm-1 control-label" for="name">标题*：</label>
			<div class="col-sm-3">
				<input value="" class="form-control" type="text" id="name" name="name" check="require" msg="请输入标题">
			</div>
			<label class="col-sm-1 control-label" for="name">附件：</label>
			<div class="col-sm-3">
				<input id="add_file_add_file" class="add_file" type="hidden" name="add_file">
	            <input type="file" id="exampleInputFile">
			</div>
			<label class="col-sm-1 control-label" for="end_date">结束：</label>
			<div class="col-sm-3">
				<input type="text" id="birthday" readonly="readonly" class="input-date form-control" style="position: relative; z-index: 1;">
			</div>
		</div>
			
		<div class="form-group">
		    <div class="col-sm-1">
		    </div>
			<div class="col-sm-11">
			<script id="editor" type="text/plain" style="width:900px;height:400px;"></script>
	        </div>
	        
		</div>
		
		<div class="form-group">
		    <div class="col-sm-1">
		    </div>
			<div class="action col-sm-11">
				<input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();">
				<input class="btn btn-sm btn-default" type="button" value="取消" onclick="go_return_url();">
			</div>
		</div>
	</form>
    </section>
   </div><!-- /.content-wrapper -->
  <jsp:include page="../Common/footer.jsp"></jsp:include>

  <script type="text/javascript">
//绑定日期选择器
	$("#birthday").datepicker({
		format : 'yyyy-mm-dd',
		language : 'zh-CN',
	});
	
	//实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');
</script>
  